package com.example.springcloudmodelserver.Dao;


import com.example.springcloudmodelserver.entity.Model;
import com.example.springcloudmodelserver.entity.ModelTest;
import com.example.springcloudmodelserver.entity.User;
import feign.Param;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.Date;
@Mapper
@Repository
public interface Modeldao {
    public Model selectModelByModelid(@Param("modelid") String modelid);

    public Model selectModelByModelname(@Param("modelname") String modelname);

    public User selectUserByTruename(@Param("truename") String truename);

    public User selectUserByusername(@Param("username") String username);

    public Model selectModelByMD5(@Param("filemd5") String filemd5);

    public Model selectModelByusername(@Param("username") String username);

    public void updateIdentityByuser(@Param("username") String username,@Param("truename") String truename,@Param("identityinfo") String identityinfo,@Param("identitypath") String identitypath);

    public void deleteModelByModelname(@Param("modelname") String modelname);

    public void updateModelfile(@Param("modelid") String modelid,@Param("filepath") String filepath);

    public void updateFileMD5(@Param("modelid") String modelid,@Param("filemd5") String filemd5);

    public void updateModel (@Param("modelname") String modelname, @Param("patentnum") String patentnum, @Param("modeltype") String modeltype, @Param("updatetime") Date updatetime, @Param("username") String username, @Param("language") String language,@Param("hardware") String hardware,@Param("software") String software,@Param("frame") String frame,@Param("rely") String rely);

    public void updatefunpath (@Param("modelid") String modelid,@Param("funpath") String funpath);

    public void updatefunMD5 (@Param("modelid") String modelid,@Param("funmd5") String funmd5);

    public void insertModel(@Param("modelname") String modelname, @Param("patentnum") String patentnum, @Param("modeltype") String modeltype, @Param("updatetime") Date updatetime, @Param("price") double price, @Param("user") String user, @Param("language") String language,@Param("hardware") String hardware,@Param("software") String software,@Param("frame") String frame,@Param("rely") String rely);
}
